﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using SystemDirectory.DAO;
using SystemDirectory.Entity;
using SystemDirectory.Common;

namespace SystemDirectory.Biz
{
    public class BOService
    {
        public DataTable Get(bool isCheck, Utilities.SearchType IsSearch)
        {
            DAOService daoService = new DAOService();
            DataTable dtResult = daoService.Get(isCheck,IsSearch);
            return dtResult;
        }


        public Service GetByID(int id)
        {
            DAOService daoService = new DAOService();
            Service sv = daoService.GetByID(id);
            return sv;
        }
        public bool AddService(Service sv)
        {
            DAOService daoService = new DAOService();
            return daoService.AddService(sv);
        }

        public bool UpdateService(Service sv)
        {
            DAOService daoService = new DAOService();
            return daoService.UpdateService(sv);
        }
    }
}
